<extend name="Public/base"/>

<block name="body">
    <div class="main-title">
        <h2>报名明细</h2>
    </div>
    <div class="tab-wrap">
        <div class="tab-content">
            <div class="form-item cf">
                <label class="item-label">用户<span class="check-tips"></span></label>
                <div class="controls">
                    <input type="text" readOnly="readOnly"  class="text input-large"  value="{$record.report_uid|get_report_name}">
                </div>
            </div>
            <hr>
            <div class="form-item cf">
                <label class="item-label">信息来源<span class="check-tips"></span></label>
                <div class="controls">
                    <input type="text" readOnly="readOnly"  class="text input-large"  value="{$record.market_name}">
                </div>
            </div>
            <hr>
            <div class="form-item cf">
                <label class="item-label">商品名称<span class="check-tips"></span></label>
                <div class="controls">
                    <input type="text" readOnly="readOnly" class="text input-large"  value="{$record.pname}">
                </div>
            </div>
            <hr>
            <div class="form-item cf">
                <label class="item-label">规格<span class="check-tips"></span></label>
                <div class="controls">
                    <input type="text" readOnly="readOnly" class="text input-large"  value="{$record.spec}">
                </div>
            </div>
            <hr>
            <div class="form-item cf">
                <label class="item-label">价格<span class="check-tips"></span></label>
                <div class="controls">
                    <input type="text" readOnly="readOnly" class="text input-large"  value="{$record.price}">
                </div>
            </div>
            <hr>
            <div class="form-item cf">
                <label class="item-label">作品图片<span class="check-tips"></span></label>
                <div class="" style="width: 50%;">
                        <a href="{$record.img}"><img  src="{$record.img}"/></a>
                </div>
            </div>
            <hr>
            <div class="form-item cf">
                <label class="item-label">采价时间<span class="check-tips"></span></label>
                <div class="controls">
                    <input type="text" readOnly="readOnly" class="text input-large"  value="{$record.createdAt|time_format}">
                </div>
            </div>
            <hr>
            <!--<a class="btn btn-success">通过</a>-->
            <!--<a class="btn btn-danger">不通过</a>-->
            <form id="" action="{:U('justify')}" method='post' class="form-horizontal">
                <input type="hidden" name="id" value="{$record.id}" />
                <input type="hidden" name="report_uid" value="{$record.report_uid}" />
                <label for="pass" class="">通过
                    <input type="radio" checked id="pass" name="status" value="2">
                </label>
                <label for="nopass" class="">不通过
                    <input type="radio" id="nopass" name="status" value="0">
                 </label>
                <br/>
                <div style="margin-top:50px;">
                    <button class="btn btn-primary confirm" type="submit">提交</button>
                    <button class="btn btn-default " onclick="javascript:history.back(-1);return false;" type="button">返回</button>
                </div>
             </form>
        </div>
    </div>
</block>

<block name="script">
    <script>
        highlight_subnav('{:U('Report/reportlist')}');
    </script>
</block>